#ifndef LOG_H
#define LOG_H

#define RECLOG(ret,erroFlag,msg,name,erromsg,errnoNum) \
    do{                               \
        if((ret)==(erroFlag)){        \
            sprintf(errmsg,"%s %s\n",msg,strerror(errnoNum));\
            recoardLog(name,errmsg);  \
        }\
        else{\
            recoardLog(name,msg);\
        }\
    }while \

#include <myHeader.h>
int recoardLog(char *name, char *perform);
#endif
